package com.upup.cloud.flights.service.impl;

import com.upup.cloud.flights.dao.FlightScheduleMapper;
import com.upup.cloud.flights.entity.FlightSchedule;
import com.upup.cloud.flights.service.FlightService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FlightServiceImpl implements FlightService {

    @Autowired
    FlightScheduleMapper flightScheduleMapper;
    @Override
    public List<FlightSchedule> getFlightList() {

        return flightScheduleMapper.queryFlightSchedule(FlightSchedule.QueryBuild().type(0).build());
    }
    @Override
    public List<FlightSchedule> getFlightGJList() {
        return flightScheduleMapper.queryFlightSchedule(FlightSchedule.QueryBuild().type(1).build());
    }
}
